package com.yx.china.handler;
import com.alibaba.csp.sentinel.slots.block.BlockException;

import com.yx.china.project.entities.ResponseResult;

/*
   用户自定义流控异常提示
 */
public class CustomerBlockHandler {
    public static ResponseResult handlerException(BlockException exception){
        return new ResponseResult(4444,"按客户自定义，global handlerException-----1");
    }
    public static ResponseResult handlerException2(BlockException exception){
        return new ResponseResult(4444,"按客户自定义，global handlerException-----2");
    }
}
